// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'id',
        footer: "Foots",
        cnName: '盘点计划',
        name: 'inventory_plan',
        url: "/inventory_plan/",
        sortName: "id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"name":"","code":[],"starttime":"","frequency":"","period":"","person":[],"time":"","whether_to_enable":""};
    const editFormOptions = [[{"title":"计划名称","field":"name","type":"text"}],
                              [{"dataKey":"设备表","data":[],"title":"设备序列号","field":"code","type":"selectList"}],
                              [{"title":"开始时间","field":"starttime","type":"date"}],
                              [{"dataKey":"频率","data":[],"title":"频率单位","field":"frequency","type":"select"}],
                              [{"title":"周期","field":"period","type":"text"}],
                              [{"dataKey":"用户列表","data":[],"title":"可操作人","field":"person","type":"selectList"}],
                              [{"title":"标准时间","field":"time","type":"number"}],
                              [{"dataKey":"enable","data":[],"title":"是否启用","field":"whether_to_enable","type":"radio"}]];
    const searchFormFields = {"name":""};
    const searchFormOptions = [[{"title":"计划名称","field":"name","type":"like"}]];
    const columns = [{field:'id',title:'主建id',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'name',title:'计划名称',type:'string',width:120,align:'left'},
                       {field:'code',title:'设备序列号',type:'string',bind:{ key:'设备表',data:[]},width:120,align:'left'},
                       {field:'starttime',title:'开始时间',type:'datetime',width:150,align:'left'},
                       {field:'frequency',title:'频率单位',type:'string',bind:{ key:'频率',data:[]},width:110,align:'left'},
                       {field:'period',title:'周期',type:'string',width:120,align:'left'},
                       {field:'person',title:'可操作人',type:'string',bind:{ key:'用户列表',data:[]},width:120,align:'left'},
                       {field:'time',title:'标准时间',type:'string',width:120,align:'left'},
                       {field:'whether_to_enable',title:'是否启用',type:'int',bind:{ key:'enable',data:[]},width:110,align:'left'},
                       {field:'createdusername',title:'创建人',type:'string',width:120,align:'left'},
                       {field:'createdtime',title:'创建时间',type:'datetime',width:150,align:'left'},
                       {field:'updateusername',title:'修改人',type:'string',width:120,hidden:true,align:'left'},
                       {field:'updatetime',title:'修改时间',type:'datetime',width:150,hidden:true,align:'left'},
                       {field:'one',title:'扩展字段1',type:'string',width:220,hidden:true,align:'left'},
                       {field:'two',title:'扩展字段2',type:'string',width:220,hidden:true,align:'left'},
                       {field:'three',title:'扩展字段3',type:'string',width:220,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}